<template>
  <div style="display: inline-block;text-align: left">
    <el-button type="success" icon="el-icon-view" size="small" circle @click="dialogTableVisible = true"/>
    <el-dialog v-el-drag-dialog :visible.sync="dialogTableVisible" title="{$comment}内容" @close="close">
      <div style="padding: 0px 20px 30px 20px;" v-html="row_data.{$name}"/>
    </el-dialog>
  </div>
</template>

<script>
import elDragDialog from '@/directive/el-dragDialog' // base on element-ui

export default {
  name: 'DragDialogDemo',
  directives: { elDragDialog },
  props: {
    row_data: {
      type: Object,
      default: function() {
        return null
      }
    }
  },
  data() {
    return {
      dialogTableVisible: false
    }
  },
  created: function() {
  },
  methods: {
    close() {
      this.$emit('getLists')
      this.dialogTableVisible = false
    }
  }
}
</script>
